﻿using System;
using System.Runtime.Serialization;

namespace PH.Model.Systems
{
    [DataContract]
    public class NoticeModel:MBase
    {
        [Model(ConvertType=Model.AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public string Title { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }
        [Model]
        [DataMember]
        public System.DateTime Expired { get; set; }
        [Model(ConvertType = Model.AttributeType.IgnoreUpdate)]
        [DataMember]
        public System.DateTime CreatedOn { get; set; }
    }

    [DataContract]
    public class NoticeCollection : ModelCollectionBase<NoticeModel> { }

    public class NoticeQuery : QueryBase
    {
        public bool? Expired { get; set; }
    }
}
